package com.kyrie.system.mybatis.execption;

/***
 * @author wuxiang
 * @date 2020-04-06
 *
 * mybatis通用异常处理类
 */
public class ServiceException extends RuntimeException {
    private String messageCode;
    private String message;

    private static final long serialVersionUID = -8705167646414506373L;

    public ServiceException() {
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public ServiceException(Throwable cause, String messageCode, String message) {
        super("[" + messageCode + "]" + message, cause);
        this.messageCode = messageCode;
    }
}

